<%@ page contentType="text/html; charset=utf-8" language="java"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="./js/meizzDate.js"></script>
<link href="./css/common.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="./css/validationEngine.jquery.css" type="text/css"/>
<script language="javascript" type="text/javascript" src="./js/common.js"></script>
<script src="./js/jquery-1.6.4.js" type="text/javascript"></script>
<script src="./js/languages/jquery.validationEngine-zh_CN.js" type="text/javascript" charset="utf-8"></script>
<script src="./js/jquery.validationEngine.js" type="text/javascript" charset="utf-8"></script>

<script>
	/*jQuery(document).ready(function(){
		// binds form submission and fields to the validation engine
		jQuery("#formId").validationEngine();
	});*/
	$(function(){
		// binds form submission and fields to the validation engine
		$("#formId").validationEngine();
	});
	
</script>
</head>

<body>
<div class="background">
<div class="bg">
	<div class="balloon"></div>
    <div class="girl"></div>
    
    <div class="name"><img src="./images/doc_jcygy.gif" /></div>
    <table width="100%" cellspacing="0" cellpadding="0">
      <tr>
        <td width="10%">&nbsp;</td>
        <td width="7%"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','../images/bt_dr01.gif',0)"><img src="../images/bt_dr.gif" name="Image2" border="0" id="Image2" /></a></td>
        <td width="7%"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','../images/bt_cx01.gif',0)"><img src="../images/bt_cx.gif" name="Image3" border="0" id="Image3" /></a></td>
        <td width="25%"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','../images/bt_sz01.gif',0)"><img src="../images/bt_sz.gif" name="Image4" border="0" id="Image4" /></a></td>
        <td width="10%"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','../images/bt_fh01.gif',0)"><img src="../images/bt_fh.gif" name="Image5" border="0" id="Image5" /></a></td>
        <td width="41%"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','../images/bt_tc01.gif',0)"><img src="../images/bt_tc.gif" name="Image6" border="0" id="Image6" /></a></td>
      </tr>
    </table>
	<div class="content">
   	  <div class="round"></div>
      <div class="djym_title">用户信息修改</div>

<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0"  class="table">
  <tr>
    <Td align="center"><div style="width:98%;">
        <form id="formId" name="form1" action="www.baidu.com" method="post">
       
         
          <table border="0" width="100%" cellpadding="0" cellspacing="0" >
            <tr>
              <th class="table_title" style="font-weight:bold;" >登录信息</th>
            </tr>
            <tr >
              <th width="21%" >&nbsp;用户名：</th>
              <td width="27%" >
			  <input value="" class="validate[required] text-input" type="text" name="userName" id="userName" /><font color="#FF0000">*</font>
			  </td>
              <th width="18%" >&nbsp;密码：</th>
              <td width="34%"><input class="validate[required,minSize[6]] text-input" id="password1" type="password" value=""/><font color="#FF0000">*</font></td>
            </tr>
            <tr>
              <th>&nbsp;确定密码：</th>
              <td><input id="password2d" type="password" value="" class="validate[required,equals[password1]] text-input"/><font color="#FF0000">*</font></td>
              <th>&nbsp;出生日期：</th>
              <td><input id="birthDate" type="text" value="" class="validate[custom[date],future[NOW]] text-input"/><font color="#FF0000">*</font></td>
            </tr>
            <tr>
              <th class="table_title" style="font-weight:bold;">企业信息</th>
              <td>&nbsp;</td>
              <th>&nbsp;</th>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <th >注册地址：</th>
              <td ><input id="registerAddr2" value="" size="32" maxlength="20" class="validate[required]" />
                <font color="#FF0000">*</font></td>
              <th >注册地邮编：</th>
              <td><input id="postcode2" value="" size="20" maxlength="6" class="validate[required,minSize[6]]"/>
                <font color="#FF0000">*</font></td>
            </tr>
            <tr>
              <th >企业类型：</th>
              <td colspan="3" ><select name="select" class="validate[required]" id="select3">
                <option value="">--请选择--</option>
                <option>内资</option>
                <option>外资</option>
                </select>
                <font color="#FF0000">*</font></td>
            </tr>
            <tr>
              <th >注册资本(金)：</th>
              <td colspan="3"  ><input id="captial2" value="50" size="10" maxlength="10"  class="validate[required,funcCall[checkValue]] text-input"/>
                万</span>
                <select id="select2" name="select2" class="validate[required]">
                  <option value="">--请选择币种--</option>
                  <option>美元</option>
                  <option>人民币</option>
                  </select>
                <font color="#FF0000">*</font></td>
            </tr>
            <tr>
              <th >联系人手机：</th>
              <td ><input id="mobile2" value="" size="32" maxlength="11" class="validate[required,custom[phone]]"/>
                <font color="#FF0000">*</font></td>
              <th >电子邮箱： </th>
              <td ><input id="email2" value="" size="40" maxlength="30" class="validate[required,custom[email]]" />
                <font color="#FF0000">*</font></td>
            </tr>
          </table>
        </form>
      </div></Td>
  </tr>
</table>
<div style="width:100%;text-align:center;"><div align="center">
 
 
 <table border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="120" onclick="prepare();"><img src="./images/bt_return1.gif" width="49" height="26" /></td>
    <td width="89" align="right" onclick="javascript:history.back(-1);"><img src="./images/bt_return.gif" width="49" height="26" /></td>
  </tr>
</table>

                      </div>
                      
<br /></div>
<script type="text/javascript">
	function prepare(){
		jQuery('#formId').validationEngine('validate');
	}
	/**
	 * @param {jqObject} the field where the validation applies
	 * @param {Array[String]} validation rules for this field
	 * @param {int} rule index
	 * @param {Map} form options
	 * @return an error string if validation failed
	 */
	function checkValue(field, rules, i, options){
		var re = /^[0-9]+(\.\d+)?$/;
		if(field.val()==""){
			alert("注册资本(金)不为空！");
			field.focus();
		}else if(!re.test(field.val())){
			// this allows to use i18 for the error msgs
			alert("注册资本(金)不能为负数和字母！");
			return options.allrules.validate2fields.alertText;
		}
			
	}
</script>
    </div>
</div>
</div>
</body>
</html>
